import base from './base'
import ChildFlowNode from './childFlowNode.vue'

class ChildFlowNodeView extends base.view {
	constructor(props) {
		super(props, ChildFlowNode)
	}

}

class ChildFlowNodeModel extends base.model {


	setAttributes() {
		this.text.editable = false; // 禁止节点文本编辑
		// 设置节点宽高和锚点
		const width = 80;
		const height = 80;
		this.width = width;
		this.height = height;
	}

	static instanceNode(name) {
		return name.toLowerCase() == 'childflow';
	}

}

export default {
	type: 'child-flow-node',
	model: ChildFlowNodeModel,
	view: ChildFlowNodeView
}
